package com.viu.technology.listener;

import com.viu.technology.po.User;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class UserRegisterListener {

    @EventListener
    public void register(UserRegisterEvent userRegisterEvent) {

        User user = userRegisterEvent.getUser();
        System.out.println("@EventListener注册信息，用户名:" + user.getName());

    }

}
